QuickOPC User's Guide and Reference
Create<TValue>(ServerDescriptor,DAItemDescriptor) Method



OpcLabs.EasyOpcClassic Assembly > OpcLabs.EasyOpc.DataAccess.Reactive Namespace > DAWriteItemValueObserver Class > Create Method : Create<TValue>(ServerDescriptor,DAItemDescriptor) Method
The OPC server involved in the operation.
The OPC item to be written into.
Creates a new observer that writes values into an OPC item given by OPC server and item descriptors.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Overloads Shared Function Create(Of TValue)( _
   ByVal serverDescriptor As ServerDescriptor, _
   ByVal itemDescriptor As DAItemDescriptor _
) As DAWriteItemValueObserver(Of TValue)
'Usage
 
Dim serverDescriptor As ServerDescriptor
Dim itemDescriptor As DAItemDescriptor
Dim value As DAWriteItemValueObserver(Of TValue)
 
value = DAWriteItemValueObserver.Create(Of TValue)(serverDescriptor, itemDescriptor)

Parameters

serverDescriptor
The OPC server involved in the operation.
itemDescriptor
The OPC item to be written into.

Type Parameters

TValue

Return Value

Returns an observer that writes values into the given OPC item.
Remarks
The DAReactive.DefaultClientSelector selector will be used for OPC Data Access operations.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also